package com.ngocvo.QuanLyThuChi;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

public class CustomViewGroup extends LinearLayout {
   public TextView tv_name;
   public TextView tv_amount;
   public TextView tv_flowDate;
   public TextView tv_id;
   public TextView tv_status;
    public CustomViewGroup(Context context) {
        super(context);
        
        //Sử dụng LayoutInflater để gán giao diện trong list.xml cho class này 
        LayoutInflater li = (LayoutInflater) this.getContext()
                                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        li.inflate(R.layout.thongke_item, this, true);
        
        //Lấy về các View qua Id
        tv_name = (TextView) findViewById(R.id.txt_NameDisplay);
        tv_amount = (TextView) findViewById(R.id.txt_AmountDisplay);
        tv_flowDate = (TextView)findViewById(R.id.txt_smallDate);
        tv_status = (TextView)findViewById(R.id.txt_Status);
        tv_id = (TextView)findViewById(R.id.cash_id);        
    }
}
